// 分类接口
import requests from '@/utis/request'

export const findAllCategory = () =>{
    return requests('/category/top','get')
}

//  获取顶级类目信息
export const findTopCategory = (id)=>{
    return requests('/category', 'get', { id })
}

// 获取二级类目筛选数据
export const findCategoryFilter = (id)=> {
    return requests('/category/sub/filter','get', {id})
}

// 获取分类数据下的商品 (带筛选条件)
export const findSubCategoryGoods = (params) => {
    return requests('/category/goods/temporary', 'post', params)
}